/** 页面路径映射，建议统一在这里配置路径映射，方便以后路径统一修改时只需要改这里，其他地方无需影响 */
/** tabbar配置页面路径 */
export const tabbarPages = {
  /** 首页 */
  index: "pages/tabbar/index/index",
  /** 社区 */
  community: "pages/tabbar/community/index",

  /** 机构
   * @mark pageInfoed
   * @param {
   *  feature{机构特色标签的value}
   * }
   */
  institution: "pages/tabbar/institution/index",

  /** 机构插件，机构列表
   */
  gpPluginInstitution: "search",

  /** 机构插件，机构详情
   */
  gpPluginInstitutionIndex: "school",

  /** 我的 */
  me: "pages/tabbar/me/index"
} as const
export type IAvailableTabbarPath = typeof tabbarPages[keyof typeof tabbarPages]
/** 非tabbar配置路径, 以下页面路径对应的页面如果不存在自行创建 */
export const pageMapper = {
  /** 首页
   * @mark pageInfoed
   */
  index: "pages/index/index",
  /** 院校查询
   * @mark pageInfoed
   * @param {
   *  feature{院校特色标签的value}
   *  province{所在地区的省名称, eg. '北京'}
   * }
   */
  shoolQuery: "pages/school/index/index",
  /** 学校详情
   * @mark pageInfoed
   * @param { id,}
   */
  shoolDetail: "pages/school/detail/index",
  /** 专业大全
   * @mark pageInfoed
   * @param {
   *  level{学历层次的value}
   * }
   */
  professional: "pages/professional/index/index",
  /** 艺考资讯
   * @mark pageInfoed
   */
  news: "pages/news/index/index",
  /** 招生简章
   * @mark pageInfoed
   */
  introBadge: "pages/badge/index/index",
  /**艺考专题-艺考百科
   * @mark pageInfoed
   */
  column: "pages/column/index/index",
  /**艺考专题-专题文章 */
  columnArticle: "pages/column/index/index?sk=1",
  /**机构排名
   * @mark pageInfoed
   * @param {
   *  filter: tab对应的value值
   *  city: 城市ID
   * }
   */
  // institutionRanking: "pages/institution/rank/index",
  institutionRanking: "pages/institution/specificrank/index",
  /**专业解读
   * @mark pageInfoed
   */
  proExplain: "pages/professional/explain/index",
  /**艺考问答
   * @mark pageInfoed
   */
  examQA: "pages/news/qa/index",
  /**艺考动态
   * @mark pageInfoed
   */
  examDynamic: "pages/news/dynamic/index",
  /**培训指南
   * @mark pageInfoed
   */
  trainGuide: "pages/news/trainguide/index",
  /** 艺考政策
   * @mark pageInfoed
   */
  examStrategy: "pages/news/examstrategy/index",
  /**具体机构排名 美术培训等
   * @mark pageInfoed
   * @param { filter,}
   */
  ranking: "pages/institution/specificrank/index",
  /** 资讯详情
   * @mark pageInfoed
   * @param { id,}
   */
  newsDetail: "pages/news/detail/index",
  /** 问答详情
   * @param { id,}
   */
  qaDetail: "pages/news/qadetail/index",
  /** 艺考专题-专题主页
   * @mark pageInfoed
   * @param { id,}
   */
  columnMain: "pages/column/main/index",
  /** 学校招生简章
   * @mark pageInfoed
   * @param { id(招生简章ID、院校资讯ID),}
   */
  schollBadge: "pages/badge/school/index",
  /** 专业简介
   * @mark pageInfoed
   * @param { id,}
   */
  proIntro: "pages/professional/intro/index",
  /** 专业解读 美术解读等
   * @mark pageInfoed
   * @param { id,}
   */
  proSpecificExplain: "pages/professional/specificexplain/index",
  /** 艺考专题 艺考百科详情
   * @mark pageInfoed
   * @param { id,}
   */
  knownDetail: "pages/column/knowndetail/index",
  /** 报考指南(预约试听页)
   * @mark pageInfoed
   */
  examGuide: "pages/institution/examguide/index",
  /** 学员评论
   * @mark pageInfoed
   */
  stuComment: "pages/institution/stucomment/index",
  /** 机构详情
   * @mark pageInfoed
   * @param { id,}
   */
  institutionDetail: "pages/institution/detail/index",
  /** webview */
  external: "pages/external/index",
  /** 模块详情 */
  moduleDetail: "pages/news/moduledetail/index",
  /** 专栏详情 */
  columnDetail: "pages/news/columndetail/index",
  /** 专栏(原内容专题) */
  contentColumn: "pages/content/column/index",
  /** 算分神器 */
  calculator:
    process.env.TARO_ENV === "swan" ? "promotions/calculator/index" : "pages/calculator/index",
  /** H5 网页跳转小程序中间页 */
  middlePage: "pages/middle/index"
} as const
/** 旧版非tabbar页面路径 */
export type LegacyPagePath = typeof pageMapper[keyof typeof pageMapper]
/** 非tabbar配置路径, 以下页面路径对应的页面如果不存在自行创建
 * @description 艺考社区相关页面
 */
export const pageMapperCommunity = {
  /** 发布笔记 */
  NotePublish: "note/notepublish/index",
  /** 编辑资料 */
  EditPersonalInfo: "me/edit-info/index",
  /** 我的关注 */
  MyConcern: "me/concern/index",
  /** 我的粉丝 */
  MyFans: "me/fans/index",
  /** 个人主页 */
  PersonalPage: "me/personal/index",
  /** 我的咨询 */
  MyConsult: "me/consult/index",
  /** 笔记详情 */
  NoteDetail: "note/detail/index",
  /** 笔记标签 */
  NoteTag: "note/tag/index",
  /** 选择高考年份等信息 */
  ChooseInfo: "home/choose-info/index",
  /** 搜索 */
  HomeSearch: "home/search/index",
  /** 话题详情 */
  WordDetail: "home/worddetail/index",
  /** 话题广场 */
  Wordsquare: "home/wordsquare/index",
  /** 短评 */
  ShortComment: "home/shortcomment/index",
  /** 内容专题 */
  ContentSpecial: "home/contentspecial/index",
  /** 知识百科(专业百科)*/
  ProfessionBaike: "home/professionbaike/index",
  /** 全部工具 */
  Tools: "home/tools/index",
  /** 账号设置 */
  AccountSetting: "me/accountsetting/index",
  /** 我的话题 */
  MyTopic: "me/mytopic/index",
  /** 授权登录 */
  AuthLogin: "me/authlogin/index",
  /** 我的回复 */
  MyReply: "me/reply/index",
  /** 视频笔记详情 */
  VideoNoteDetail: "note/videodetail/index"
} as const
/** 艺考社区相关非tabbar页面路径 */
export type CommunityPagePath = typeof pageMapperCommunity[keyof typeof pageMapperCommunity]
export type PagePath = LegacyPagePath | CommunityPagePath | (string & {})
